package com.yx.doodleview.ui.widget.doodleveiw.action;

import android.graphics.Bitmap;
import android.graphics.Canvas;

/**
 * Created by Administrator on 2017/9/22 0022.
 */

public class BitmapAction extends BaseAction {
    private Bitmap bitmap;
    public BitmapAction(Bitmap bitmap, int color) {
        super(color);
        this.bitmap=bitmap;
    }


    @Override
    public void draw(Canvas canvas) {
        canvas.drawBitmap(bitmap, 0, 0, null);
    }

    @Override
    public void move(float x, float y) {

    }
}
